package de.thw.web.factory;

import de.thw.web.model.AbstractModel;
import de.thw.web.object.Form;

public class FormFactory extends AbstractFactory {

	public static Form getForm(AbstractModel model) {

		Form form = FormFactory.getFormForClass(model.getClass());

		if (form != null) {
			form.setModel(model);
		}

		return form;
	}

	public static Form getFormForClass(Class<? extends AbstractModel> class1) {

		Form form = null;

		form = new Form();
		form.setPath("model/user/form.jsp");

		return form;
	};

};